{% extends "demo/base.html" %}
    {% block main %}
    <div class="container" role="main">

      <!-- Main jumbotron for a primary marketing message or call to action -->
        <div class="row">
    {% for n in search_novel_list%}
    <div class="col-xs-6 col-sm-6">
        <a href="#" class="thumbnail" style="float: left">
            <img src="{{ n.img_url }}" style="height: 240px; width: 180px; display: block;" data-holder-rendered="true" />
        </a>
        <p><br/>
                书名:<a href="{{ n.url }}" target="_blank">{{ n.name }}</a><br/><br/>
                分类:{{ n.novel_category }}<br/>
                作者:{{ n.author }}<br/>
                最新章节:<a href="{{ n.update_chapter_url }}">{{ n.update_chapter }}</a><br/>
                简介:{{ n.desc }}<br/>
            {% if n.is_exists %}
            <a href="{% url 'get_novel' %}?nurl={{ n.url }}"><button type="button" class="btn btn-default">更新</button></a>
            <a href="{% url 'novel_index' %}?nurl={{ n.url }}"><button type="button" class="btn btn-default">点击阅读</button></a>
            {% else %}
            <a href="{% url 'get_novel' %}?nurl={{ n.url }}"><button type="button" class="btn btn-default">抓取</button></a>
            {% endif %}
        </p>

  </div>

    {% endfor %}
</div>

    </div> <!-- /container -->
    {% endblock main %}